package com.example.day_day_up.utils;

import com.example.day_day_up.entity.constants.Constants;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
    public static String transToStr(Date date) {
        SimpleDateFormat dateFormat = new SimpleDateFormat(Constants.DATE_STR_FORMAT);
        return dateFormat.format(date);
    }
}
